This page last changed on Jun 26, 2008 by salamy.

Adding your code

Here's the standard method of adding a new directory to the subversion repository.

1) On your local machine create the following directory structure

tempdir
`~~ myproject       <-- Replace 'myproject' with the name of your project
   `~~ tags
   `~~ branches
   `~~ trunk
      `~~ agent
      `~~ ctd2007

2) cd to tempdir and run the following command
svn import myproject svn+ssh://kahuna.shore.mbari.org/svn/repos/myproject

3) To check out myproject's main trunk on another machine you run the command
svn co svn+ssh://kahuna.shore.mbari.org/svn/repos/myproject/trunk myproject

Be Careful



Notice that we've added '/trunk' to the SVN URL above to check out only the trunk (main development line). If you omit '/trunk' you will check out all tags and branches as well as the trunk.


A free on-line guide to SVN is available at http://svnbook.red-bean.com/. The most useful svn commands are

svn status                            <-- shows you the status of files in your project
svn add some/new/file                 <-- add a new file to version control
svn del some/old/file                 <-- remove a file from version control
svn update                            <-- Get changes from the repository
svn commit -m "some commit message"   <-- commit changes to the repository
svn help

If you find that you can't connect to the svn repository contact Karen Salamy (salamy@mbari.org). She may need to give you access permissions.

Document generated by Confluence on Feb 04, 2026 09:02